﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WebMapApp._Default" %>

<%@ Register Src="Measure.ascx" TagName="Measure" TagPrefix="uc2" %>
<%@ Register Assembly="App_Code" Namespace="WebMapApp" TagPrefix="uc1" %>
<%@ Register assembly="gridResults" namespace="esri_samples" tagprefix="esri_samples" %>
<%@ Register assembly="ESRI.ADF.Samples.PrintTask" namespace="ESRI.ADF.Samples.PrintTask" tagprefix="cc1" %>
<%@ Register src="GoToLocation/GoToLocation.ascx" tagname="GoToLocation" tagprefix="uc3" %>
<%@ Register src="ZoomToScale/ZoomToScale.ascx" tagname="ZoomToScale" tagprefix="uc4" %>
<%@ Register assembly="ESRI.ADF.UserSearch.CustomTasks.QueryBuilderTask" namespace="ESRI.ADF.UserSearch.CustomTasks" tagprefix="esriSamples" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html id="Html1" runat="server" xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head id="Head1" runat="server">
    <title></title>
    <%--  For LTR. . . use these styles if dir="ltr" in html tag    --%>
    <style type="text/css">
        .appFloat1 {float: left;} 
        .appFloat2 {float: right;} 
        .appAlign1 {text-align: left;} 
        .appAlign2 {text-align: right;} 
        .combined1 {float: left; text-align: left;}
        .combined2 {float: right; text-align: right;}
        .mapPosition {left: 260px; visibility: visible;} 
        .dockPosition {left: 0px; visibility: visible;} 
        .dockToggleClass {visibility: visible;}
        .offview {top: 1600px;}
        </style>
    <%--  For RTL. . . use these styles if dir="rtl" in html tag
    <style type="text/css">
        .appFloat1 {float: right;} 
        .appFloat2 {float: left;} 
        .appAlign1 {text-align: right;} 
        .appAlign2 {text-align: left;} 
        .combined1 {float: right; text-align: right;}
        .combined2 {float: left; text-align: left;}
        .mapPosition {left: 0px; visibility: hidden;} 
        .dockPosition {left: 512px; visibility: hidden;} 
        .dockToggleClass {visibility: hidden;}
        .offview {top: 1600px;}
    </style>    --%>
</head>
<body style="margin: 0px 0px 0px 0px; background-color: white; width: 100%; font-family: Verdana;
    font-size: 8pt;">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnableScriptGlobalization="True" />
    <%-- Page Header --%>
    <asp:Panel runat="server" ID="PageHeader" CssClass="MapViewer_TitleBannerStyle" Width="100%" Height="65px" Style="position: relative;">
        <div id="TitleMenuDiv" style="top: 0px;">
            <div class="appFloat1" style="padding: 15px 5px 0px 5px">
                <asp:Label ID="PageTitle" runat="server" Font-Size="12pt" Font-Names="Verdana" ForeColor="White" Font-Bold="True" Style="z-index: 100;"></asp:Label>
            </div>
            <div class="combined2">
                <asp:Menu ID="TitleMenu" runat="server" SkipLinkText="" BackColor="White" 
                    Orientation="Horizontal" Font-Size="Small" DynamicHorizontalOffset="2" 
                    Font-Names="Verdana" ForeColor="White" ItemWrap="True" 
                    StaticSubMenuIndent="8px" Height="16px">
                    <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <DynamicMenuStyle BackColor="#B5C7DE" />
                    <DynamicSelectedStyle BackColor="#507CD1" />
                    <Items>
<asp:MenuItem Enabled="True" ImageUrl="" NavigateUrl="help/Huongdansudung.pdf" PopOutImageUrl="" Selectable="True" Selected="True" SeparatorImageUrl="" Target="_Blank" Text="Trợ giúp" ToolTip="" Value="Trợ giúp" />
</Items>
                    <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <StaticSelectedStyle BackColor="#507CD1" />
                </asp:Menu>
                <asp:LoginName ID="LoginName1" runat="server" ForeColor="White" Font-Size="8pt" FormatString="Logged in as {0}" />
                &nbsp;&nbsp;
                <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Size="8pt" ForeColor="White" LogoutAction="RedirectToLoginPage" Style="text-decoration: none" onmousedown="LogOut()" onmouseover="this.style.color='Black'" onmouseout="this.style.color='White'" />
                &nbsp;&nbsp;
                <asp:HyperLink ID="CloseHyperLink" runat="server" Style="color: White; font-family: Verdana; font-size: 8pt; text-decoration: none;" NavigateUrl="JavaScript: CloseOut()" Visible="False" ToolTip="Close Application" onmouseover="this.style.color='Black'" onmouseout="this.style.color='White'">Close&nbsp;&nbsp;</asp:HyperLink>
            </div>
        </div>
    </asp:Panel>
    <%-- Link and Tool bar --%>
    <asp:Panel runat="server" ID="LinkBar" CssClass="MapViewer_TaskbarStyle" Width="100%" Height="30px">
        <table cellpadding="0" cellspacing="0" style="width: 100%; font-family: Verdana; font-size: 8pt;">
            <tr>
                <td id="TaskMenuCell" style="height: 30px; padding-left: 5px; visibility: hidden;" valign="middle" class="appAlign1">
                    <asp:Menu ID="TaskMenu" runat="server" Style="left: 0px; position: relative; top: 0px" Orientation="Horizontal" BackColor="Transparent" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="8pt" ForeColor="White" StaticSubMenuIndent="10px" Height="12px" CssClass="appFloat1" SkipLinkText="" DynamicPopOutImageUrl="~/images/expand_right2.gif" StaticPopOutImageUrl="~/images/expand.gif">
                    </asp:Menu>
                </td>
                <td id="ToolbarCell" style="height: 30px; " class="appAlign2">
                    <table id="tblToolBarCell" cellpadding="0" cellspacing="0" align="right">
                        <tr>
                        <td align="right">
                        
                    </td>
                            <td style="height: 28px; " align="right">
                            <uc4:ZoomToScale ID="ZoomToScale1" runat="server" />                                
                            </td>
                            <td style="height: 28px; ">
                                <esri:Toolbar ID="Toolbar1" runat="server" BuddyControlType="Map" 
                                    Group="Toolbar1_Group" Height="28px" 
                                    ToolbarItemDefaultStyle-BackColor="Transparent" 
                                    ToolbarItemDefaultStyle-Font-Names="Arial" 
                                    ToolbarItemDefaultStyle-Font-Size="Smaller" 
                                    ToolbarItemDisabledStyle-BackColor="Transparent" 
                                    ToolbarItemDisabledStyle-Font-Names="Arial" 
                                    ToolbarItemDisabledStyle-Font-Size="Smaller" 
                                    ToolbarItemDisabledStyle-ForeColor="Gray" 
                                    ToolbarItemHoverStyle-Font-Bold="True" ToolbarItemHoverStyle-Font-Italic="True" 
                                    ToolbarItemHoverStyle-Font-Names="Arial" 
                                    ToolbarItemHoverStyle-Font-Size="Smaller" 
                                    ToolbarItemSelectedStyle-BackColor="WhiteSmoke" 
                                    ToolbarItemSelectedStyle-Font-Bold="True" 
                                    ToolbarItemSelectedStyle-Font-Names="Arial" 
                                    ToolbarItemSelectedStyle-Font-Size="Smaller" ToolbarStyle="ImageOnly" 
                                    WebResourceLocation="/aspnet_client/ESRI/WebADF/" Width="308px" 
                                    ToolbarItemHoverStyle-BorderColor="Black" 
                                    ToolbarItemSelectedStyle-BorderColor="Black" CurrentTool="MapPan" 
                                    Alignment="Right" ToolbarItemDefaultStyle-BorderColor="Transparent" 
                                    CssClass="appFloat2" ToolbarItemHoverStyle-BackColor="White" 
                                    oncommandclick="Toolbar1_CommandClick" UseDefaultWebResources="False">
                                    <ToolbarItems>
                                    <esri:Tool ClientAction="Point" JavaScriptFile="" Name="AddPointTool" ServerActionAssembly="App_Code"
					ServerActionClass="PointTool" Text="Add Point Tool" />
                                        <esri:Tool ClientAction="DragRectangle" JavaScriptFile="" Name="MapZoomIn" 
                                            ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomIn" 
                                            Text="Zoom In" DefaultImage="esriZoomIn.png" 
                                            HoverImage="esriZoomIn.png" SelectedImage="esriZoomIn.png" 
                                            ToolTip="Phóng to" />
<esri:Tool ClientAction="DragRectangle" Text="Zoom Out" DefaultImage="esriZoomOut.png" HoverImage="esriZoomOut.png" 
                                            SelectedImage="esriZoomOut.png" Name="MapZoomOut" ToolTip="Thu nhỏ" 
                                            ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" 
                                            ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomOut" 
                                            JavaScriptFile="" />

<esri:Tool ClientAction="DragImage" Text="Pan" DefaultImage="esriPan.png" HoverImage="esriPan.png" 
                                            SelectedImage="esriPan.png" Name="MapPan" ToolTip="Di chuyển" 
                                            ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" 
                                            ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapPan" 
                                            JavaScriptFile="" />

                                        <esri:Command ClientAction="" Configuration="" 
                                            DefaultImage="esriZoomFullExtent.png" HoverImage="esriZoomFullExtent.png" 
                                            JavaScriptFile="" Name="MapFullExtent" SelectedImage="esriZoomFullExtent.png" 
                                            ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" 
                                            ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapFullExtent" 
                                            Text="Full Extent" ToolTip="Xem tất cả" />
                                        <esri:Command BuddyItem="MapForward" ClientAction="ToolbarMapBack" 
                                            DefaultImage="~/images/backward.png" Disabled="True" 
                                            DisabledImage="~/images/backward_disabled.png" 
                                            HoverImage="~/images/backward.png" JavaScriptFile="" Name="MapBack" 
                                            SelectedImage="~/images/backward.png" Text="Back" ToolTip="Trở lại trước đó" />
                                        <esri:Command BuddyItem="MapBack" ClientAction="ToolbarMapForward" 
                                            DefaultImage="~/images/forward.png" Disabled="True" 
                                            DisabledImage="~/images/forward_disabled.png" HoverImage="~/images/forward.png" 
                                            JavaScriptFile="" Name="MapForward" SelectedImage="~/images/forward.png" 
                                            Text="Forward" ToolTip="Trở lại sau đó" />
                                        <esri:Command ClientAction="$find('FloatingPanel2_GoToLocation3').toggle()" 
                                            DefaultImage="~/GoToLocation/GoToLocation.png" 
                                            HoverImage="~/GoToLocation/GoToLocation.png" JavaScriptFile="" 
                                            Name="GoToLocation" SelectedImage="~/GoToLocation/GoToLocation.png" 
                                            ToolTip="Di chuyển đến vị trí..." />
                                        <esri:Command ClientAction="toggleMagnifier();" 
                                            DefaultImage="~/images/show-magnify.png" HoverImage="~/images/show-magnify.png" 
                                            JavaScriptFile="" Name="Magnifier" SelectedImage="~/images/show-magnify.png" 
                                            Text="Phóng to" ToolTip="Xem chi tiết theo vùng lựa chọn" />

<esri:Tool ClientAction="MapIdentifyTool()" Text="Xem thông tin đối tượng" DefaultImage="~/images/identify.png" 
                                            HoverImage="~/images/identify.png" SelectedImage="~/images/identify.png" 
                                            Name="MapIdentify" ToolTip="Xem thông tin đối tượng" JavaScriptFile="" 
                                            Cursor="pointer" />

                                        <esri:Tool ClientAction="startMeasure()" DefaultImage="~/images/measure.png" 
                                            HoverImage="~/images/measure.png" JavaScriptFile="" Name="Measure" 
                                            SelectedImage="~/images/measure.png" Text="Đo kích thước" 
                                            ToolTip="Đo kích thước" />

<esri:Command DefaultImage="~/images/show-overview-map.png" HoverImage="~/images/show-overview-map.png" 
                                            SelectedImage="~/images/show-overview-map.png" Name="OverviewMapToggle" 
                                            ToolTip="Bản đồ điều hướng" ClientAction="toggleOverviewMap()" 
                                            JavaScriptFile="" EnablePostBack="True" />

</ToolbarItems>
                                    <BuddyControls>
<esri:BuddyControl Name="Map1" />
</BuddyControls>
                                </esri:Toolbar>
                            </td>
                            <td align="right">

                    </td>
                        </tr>
                    </table>
                    </td>
            </tr>
        </table>
    </asp:Panel>
    <%-- Page content area ..... Left panel and Map display --%>
    <div id="PageContent" style="width: 100%; position: relative;">
        <%-- Map Display --%>
        <div id="Map_Panel" style="width: 512px; height: 512px; position: absolute; top: 0px; overflow: hidden; background-color: White;" class="mapPosition">
            <esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" 
                Height="100%" Width="100%" UseDefaultWebResources="False">
            </esri:Map>
            <%--Navigation--%>
            <table id="Navigation_Panel" style="position: absolute; top: 5px; width: auto; height: auto; background-color: Transparent; font-family: Verdana; font-size: x-small;" class="appFloat1">
                <tr>
                    <td>
                        <esri:Navigation ID="Navigation1" runat="server" Map="Map1" 
                            DisplayImageUrl="~/North_Arrow/directional_arrows_N.gif" Height="52px" 
                            Width="52px" Size="44" UseDefaultWebResources="False">
                            <DisplayCharacter CharacterIndex="58" FontName="ESRI North" />
                        </esri:Navigation>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <table>
                            <tr>
                                <td align="left">
                                    <esri:ZoomLevel ID="ZoomLevel1" runat="server" Map="Map1" 
                                        UseDefaultWebResources="False" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <%-- Left Panel ..... for tasks, results, toc, overview map, etc --%>
        <table id="LeftPanelCell" cellpadding="0" cellspacing="0" class="dockPosition" style="position: absolute; top: 0px; background-color: White;">
            <tr>
                <td id="LeftPanelTableCell" style="position: relative;">
                    <div id="LeftPanelScrollDiv" style="position: relative; width: auto;">
                        <div id="LeftPanelCellDiv" style="width: 250px; border: solid 1px #999999; position: relative;">
                            <%--Results--%>
                            <div id="Results" style="width: 100%; border: solid 1px #666666; height: auto">
                                <asp:Panel ID="Results_Panel_Header" runat="server" CssClass="MapViewer_WindowTitleBarStyle" Height="24px">
                                    <div style="padding: 4px; cursor: default; vertical-align: middle;">
                                        <div id="ResultsPanelTitle" class="appFloat1" style="vertical-align: middle;">
                                            Kết quả</div>
                                        <div id="ResultsPanelExpandButton" class="appFloat2" style="vertical-align: middle;">
                                            <img id="Results_Panel_Image" src="images/expand.gif" alt="Expand" onmousedown="toggleConsolePanel('Results_Panel')" style="cursor: pointer" />
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Results_Panel_Collapse" runat="server" CssClass="MapViewer_CollapsePanel" Style="display: block;">
                                    <asp:Panel ID="Results_Panel_Body" runat="server" Height="150" Style="padding: 0px 0px 10px 0px; background-color: White; width: 100%">
                                        <div id="TaskResults1Holder" style="width: 100%; height: 100%;">
                                            <esri:FloatingPanel ID="FloatingPanel1" runat="server" BackColor="White" 
                                                BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
                                                Font-Size="8pt" ForeColor="Black" Height="97px" Title="Điều khiển đối tượng" 
                                                TitleBarColor="WhiteSmoke" TitleBarHeight="20px" TitleBarSeparatorLine="False" 
                                                Transparency="35" Width="250px" UseDefaultWebResources="False">
                                            </esri:FloatingPanel>
                                            <esri_samples:gridResults ID="gridResults1" runat="server" Map="Map1" 
                                                style="position: absolute; overflow: auto; top: 50px; left: 6px; height: 130px; width: 235px;" 
                                                Visible="True" />
                                            <esri:TaskResults ID="TaskResults1" runat="server" BackColor="White" 
                                                ExpandDepth="2" Font-Bold="False" Font-Names="Verdana" Font-Size="8pt" 
                                                ForeColor="Black" GraphicsTransparency="0" Height="11%" Map="Map1" 
                                                ShowClearAllButton="True" 
                                                Style="cursor: default; margin-bottom: 1px; overflow: auto; float: left;" 
                                                Width="100%" UseDefaultWebResources="False" />
                                        </div>
                                    </asp:Panel>
                                </asp:Panel>
                            </div>
                            <%--TOC ... Map Contents--%>
                            <div id="Toc_Panel" style="width: 100%; border: solid 1px #666666; height: auto;">
                                <asp:Panel ID="Toc_Panel_Header" runat="server" CssClass="MapViewer_WindowTitleBarStyle" Height="24px">
                                    <div style="padding: 4px; cursor: default; vertical-align: middle;">
                                        <div id="TocPanelTitle" class="appFloat1" style="vertical-align: middle;">
                                            Lớp bản đồ</div>
                                        <div id="TocPanelExpandButton" class="appFloat2" style="vertical-align: middle">
                                            <img id="Toc_Panel_Image" src="images/collapse.gif" alt="Collapse" onmousedown="toggleConsolePanel('Toc_Panel')" style="cursor: pointer" />
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Toc_Panel_Collapse" runat="server" CssClass="MapViewer_CollapsePanel" Style="display: block">
                                    <asp:Panel ID="Toc_Panel_Body" runat="server" Height="250" Style="padding: 0px 0px 10px 0px; background-color: White; width: 100%">
                                        <esri:Toc ID="Toc1" runat="server" BuddyControl="Map1" Height="100%" 
                                            Width="100%" Style="cursor: default; float: left;" ForeColor="" ExpandDepth="1" 
                                            ShowResourceCheckBoxes="True" ShowLayerCheckBoxes="True" 
                                            UseDefaultWebResources="False" />
                                    </asp:Panel>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </td>
                <td>
                    <%-- Toggle Bar ..... toggles left panel visibility --%>
                    <div id="ToggleCell" style="overflow: hidden; width: 10px; border-style: solid; border-color: #999999; border-bottom-width: 0px; border-left-width: 1px; border-right-width: 1px; border-top-width: 0px; background-color: White; position: relative;" class="dockToggleClass">
                        <table id="ToggleCellTable" cellpadding="0" cellspacing="0" style="position: relative; height: 100%; width: 100%;">
                            <tr>
                                <td id="PanelSlider" style="cursor: e-resize; background-color: White; height: 45%">
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 24px;">
                                    <img id="CollapseImage" src="images/collapse_left.gif" alt="Collapse" style="cursor: pointer" height="20px" />
                                </td>
                            </tr>
                            <tr>
                                <td id="PanelSliderBottom" style="cursor: e-resize; background-color: White; height: 50%">
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <%--Overview Map--%>
    <esri:OverviewMap ID="OverviewMap1" runat="server" Map="Map1" Height="150px" 
        MapResourceManager="MapResourceManager1" OverviewMapResource="BTGISWASECO" 
        Style="z-index: 1001; position: absolute; left: 0px;" CssClass="offview" 
        Width="150px" Font-Bold="False" BorderStyle="Solid" BorderWidth="3px" 
        ForeColor="Black" ExpandPercentage="500" UseDefaultWebResources="False" 
        ToolTip="Bản đồ điều hướng" />
    <%--Go To Location--%>
    <esri:FloatingPanel ID="FloatingPanelGTL" runat="server" Height="85px" Title="Di chuyển đến vị trí" Width="380px" Style="left: 335px; position: absolute; top: 190px" Visible="False" BackColor="White" Transparency="15">
        <esri:GoToLocation ID="GoToLocation1" runat="server" EnableUpdates="False" Height="75px" SignificantDigits="3" Width="380px" XLabel="X:" YLabel="Y:" ZoomFactor="0.25" Map="Map1" />
    </esri:FloatingPanel>
       <esri:FloatingPanel ID="FloatingPanel2" runat="server" Docked="False" 
            Visible="False" ExpandCollapseButton="False" HeightResizable="False" 
            Title="Di chuyển đến vị trí..." WidthResizable="False" Height="75px" Width="300px" 
            TitleBarForeColor="White" BorderColor="#333333" BorderStyle="Solid" 
            BorderWidth="1px" Font-Names="Verdana" BackColor="White" 
            style="position: absolute; left: 150px; top: 150px;" 
            TitleBarCssClass="GoToLocationHeader">
        <uc3:GoToLocation ID="GoToLocation3" runat="server" />
        
    </esri:FloatingPanel>
    <%--Magnifier--%>
    <esri:Magnifier ID="Magnifier1" runat="server" MagnifierMapResource="BTGISWASECO" 
        Map="Map1" MapResourceManager="MapResourceManager1" 
        Style="left: 335px; position: absolute; top: 190px" Visible="False" 
        BackColor="White" Transparency="15" Title="Phóng to">
    </esri:Magnifier>
    <%--ScaleBar / MapCopyrightText --%>
    <table id="Copyright_Panel" runat="server" border="0" cellpadding="0" cellspacing="0" style="width: auto; height: auto; background-color: Transparent; font-family: Verdana; font-size: x-small; color: Black; position: absolute; left: 150px;" dir="ltr" class="offview">
        <tr>
            <td>
                <img src="images/blank.gif" style="width: 5px; height: 35px; padding: 0px 0px 0px 0px;" alt="" />
            </td>
            <td align="left" valign="middle">
                <esri:ScaleBar ID="ScaleBar1" runat="server" BarHeight="8" Height="35px" 
                    Map="Map1" Style="z-index: 102; " Width="165px" 
                    BarUnits="Meters" UseDefaultWebResources="False" />
            </td>
            <td align="left" valign="middle">
                <esri:MapCopyrightText ID="MapCopyrightText1" runat="server" Height="15px" 
                    Font-Names="Verdana" Font-Size="8pt" Font-Bold="true" ForeColor="#333333" 
                    Map="Map1" Style="z-index: 1011; cursor: pointer;" 
                    UseDefaultWebResources="False"></esri:MapCopyrightText>
            </td>
        </tr>
    </table>
    <%--MapResourceManager--%>
    <esri:MapResourceManager ID="MapResourceManager1" runat="server" 
        Style="position: absolute; left: 344px; top: 130px; z-index: 1503;" 
        OnResourceInit="ResourceManager_ResourceInit" UseDefaultWebResources="False">
    
<ResourceItems>
<esri:MapResourceItem DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=350:width=600:dpi=96:color=:transbg=False:displayInToc=True:dynamicTiling=False" 
        LayerDefinitions="" 
        Definition="&lt;Definition DataSourceDefinition=&quot;localhost&quot; DataSourceType=&quot;ArcGIS Server Local&quot; Identity=&quot;To set, right-click project and 'Add ArcGIS Identity'&quot; ResourceDefinition=&quot;Layers@BTGISWASECO&quot; /&gt;" 
        Name="BTGISWASECO" />
</ResourceItems>
</esri:MapResourceManager>
    <%--MapResourceManager for overview Map--%>
    <esri:MapResourceManager ID="MapResourceManager2" runat="server" Style="left: 495px; position: absolute; top: 605px" OnResourceInit="ResourceManager_ResourceInit">



</esri:MapResourceManager>
    <%--GeocodeResourceManager--%>
    <esri:GeocodeResourceManager ID="GeocodeResourceManager1" runat="server" 
        Style="z-index: 104; left: 492px; position: absolute; top: 681px" 
        OnResourceInit="ResourceManager_ResourceInit" 
        UseDefaultWebResources="False">
    



</esri:GeocodeResourceManager>
    <%--GeoprocessingResourceManager--%>
    <esri:GeoprocessingResourceManager ID="GeoprocessingResourceManager1" 
        runat="server" 
        Style="z-index: 105; left: 493px; position: absolute; top: 775px" 
        OnResourceInit="ResourceManager_ResourceInit" UseDefaultWebResources="False">
    



</esri:GeoprocessingResourceManager>
    <%-- Extenders--%>
    <esri:DockExtender ID="DockExtender4" runat="server" Alignment="TopRight" DockControlId="Map1" TargetControlID="OverviewMap1" SkinID="" Enabled="True" BehaviorID="DockExtender4" EnableViewState="True">
    </esri:DockExtender>
    <esri:DockExtender ID="DockExtender3" runat="server" Alignment="BottomLeft" DockControlId="Map1" TargetControlID="Copyright_Panel" SkinID="" Enabled="True" BehaviorID="DockExtender3" EnableViewState="True">
    </esri:DockExtender>
    <ajaxToolkit:ResizableControlExtender ID="Toc_Panel_ResizeExtender" runat="server" TargetControlID="Toc_Panel_Body" BehaviorID="Toc_Panel_ResizeBehavior" HandleCssClass="MapViewer_ResizeHandleStyle" MinimumWidth="250" MinimumHeight="20" MaximumWidth="250" MaximumHeight="1200" HandleOffsetY="10" />
    <ajaxToolkit:ResizableControlExtender ID="Results_Panel_ResizeExtender" runat="server" TargetControlID="Results_Panel_Body" BehaviorID="Results_Panel_ResizeBehavior" HandleCssClass="MapViewer_ResizeHandleStyle" MinimumWidth="250" MinimumHeight="20" MaximumWidth="250" MaximumHeight="1200" HandleOffsetY="10" />
    <uc2:Measure ID="Measure1" runat="server" AreaUnits="Sq_Miles" MapBuddyId="Map1" MapUnits="Resource_Default" MeasureUnits="Miles" NumberDecimals="3" />
    <%--TaskManager--%>
    <esri:TaskManager ID="TaskManager1" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" ForeColor="Black" Height="100px" 
        Style="z-index: 106; left: 287px; position: absolute; top: 640px" Width="200px" 
        BuddyControl="TaskMenu" UseDefaultWebResources="False">
        <esriSamples:QueryBuilderTask ID="QueryBuilderTask1" runat="server" 
            BackColor="White" BorderColor="LightSteelBlue" BorderStyle="Outset" 
            BorderWidth="1px" Font-color="White" Font-Names="Verdana" Font-Size="8pt" 
            ForeColor="Black" HeightResizable="False" Title="Tìm kiếm" 
            TitleBarColor="#2F5675" TitleBarForeColor="White" TitleBarHeight="20px" 
            TitleBarSeparatorLine="True" Transparency="35" Width="130px" 
            WidthResizable="False" Visible="false">
            <TaskResultsContainers>
                <esri:BuddyControl Name="gridResults1" />
            </TaskResultsContainers>
        </esriSamples:QueryBuilderTask>
</esri:TaskManager>

    <script language="javascript" type="text/javascript" src="javascript/WebMapApp.js"></script>

    <script language="javascript" type="text/javascript">
        arcgisWebApp.setPageElementSizes();
        if (isRTL) {
            var tmenu = $get("TaskMenu");
            if (tmenu)
                tmenu.style.visibility = "hidden";
        }
    </script>
    <uc1:MapIdentify ID="MapIdentify1" runat="server" MapBuddyId="Map1" 
        UseDefaultWebResources="False" WebResourceLocation="" />

    </form>

    <script language="javascript" type="text/javascript">
        Sys.Application.add_init(startUp);
    </script>

</body>
</html>
